/********************************************************************************
 *      Copyright:  (C) 2022 Nbiot<lingyun@gail.com>
 *                  All rights reserved.
 *
 *       Filename:  thread_init.h
 *    Description:  This head file 
 *
 *        Version:  1.0.0(02/08/22)
 *         Author:  Nbiot <lingyun@gail.com>
 *      ChangeLog:  1, Release initial version on "02/08/22 16:37:34"
 *                 
 ********************************************************************************/
#ifndef _THREAD_INIT_H
#define _THREAD_INIT_H

#include <stdio.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>


enum iface_mode
{
	disable,//default 0
    enable//+1

};
typedef struct interface_lock_s
{
	int               eth0_flag;
	int               wwan0_flag;
	int               ppp0_flag;
	int               min_metric;
	pthread_mutex_t   lock;

}iface_lock_t;


void *thread_eth0(void *args);

void *thread_wwan0(void *args);

int thread_init(pthread_attr_t *thread_attr);
#endif 
